package com.example.lin.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */
@Getter
@AllArgsConstructor
public enum Result {

    SUCCESS(200, "操作成功"),
    
    LOGIN_SUCCESS(200, "登录成功"),

    INVALID_PARAM(400, "参数无效"),

    FAIL(400, "操作失败"),

    INVALID_TOKEN(401, "无效的token"),

    UNAUTHORIZED(401, "未授权"),

    FORBIDDEN(403, "禁止访问"),

    NOT_FOUND(404, "未找到"),

    METHOD_NOT_ALLOWED(405, "方法不允许"),

    REQUEST_TIMEOUT(408, "请求超时"),

    CONFLICT(409, "冲突"),

    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),

    UNKNOWN_ERROR(501, "未知错误"),

    BAD_GATEWAY(502, "网关错误"),

    SERVICE_UNAVAILABLE(503, "服务不可用"),

    GATEWAY_TIMEOUT(504, "网关超时"),
    ;

    private final int code;

    private final String msg;
}
